package com.ymt.bpm.service.platform.config;

import com.alibaba.fastjson.JSONObject;
import com.ymt.bpm.model.PBo;

/**
 * Created by Johnny on 2017/10/23.
 */
public interface BoService {

    JSONObject query(String tenantId, String appId, String purpose, String search, String sort,
                     String order, int offset, int limit, int timezoneOffset);

    JSONObject get(String tenantId, String boid, String lang, int timezoneOffset);

    String checkAttr(String tenantId, String attrName, String value, String boId);

    //JSONObject save(String tenantId, String loginName, String displayName, PBo bo);

    JSONObject delete(String tenantId, String loginName, String displayName, String boid);

    public String getByName(String tenantId, String boname, String lang, int timezoneOffset);

    public String save(String tenantId, String boStr, String loginName, String displayName, String lang);
}
